<template>
  <div id="app">
    <headerVue v-show="$route.meta.showHeaderFooter"></headerVue>
    <router-view></router-view>
    <footerVue v-show="$route.meta.showHeaderFooter"></footerVue>
  </div>
</template>

<script>
import headerVue from "@/components/header/header.vue";
import footerVue from "@/components/footer/footer.vue";

export default {
  name: "App",
  components: {
    headerVue,
    footerVue,
  },
  mounted() {
    this.$store.dispatch("categoryList"); //发送请求，得到三级列表
  },
};
</script>

<style>
</style>
